import { Menubar } from "./Menubar.js";
import { Toolbar } from "./Toolbar.js";
// import dom from "./lib/dom.js";

import { Editor } from "./Editor.js";
import { Sidebar } from "./Sidebar.js";

import { Viewer } from "./Viewer.js";

const docBody = document.body;
const editor = new Editor();
const menubar = new Menubar(editor);
const sidebar = new Sidebar(editor);
const toolbar = new Toolbar(editor);
const viewer = new Viewer(editor);
window.__viewer = viewer;
console.log(viewer);

docBody.append(viewer.dom);
docBody.append(toolbar.dom);
docBody.append(sidebar.dom);
docBody.append(menubar.dom);